<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><?php echo C('TITLE');?></title>
	<meta name="keywords" content="<?php echo C('KEYWORD');?>" />
	<meta name="description" content="<?php echo C('DESCRIPTION');?>" />
	<link href="/Public/skin/css/css.css" rel="stylesheet" type="text/css" />
	<link href="/Public/skin/css/lrtk.css" rel="stylesheet" type="text/css" />
	<script src="/Public/skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>
	<script src="/Public/skin/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="/Public/skin/js/lrtk.js"></script>
</head>

<body>
    <!--nav 开始-->
	<div id="header">
    <a class="logo" href="/">
        <img src="/Public/skin/images/logo.jpg" />
    </a>
    <ul class="nav">
        <li>
            <a <?php if($nav_active == 'index'): ?>class="now"<?php endif; ?> href="<?php echo U('user/index');?>">个人信息</a>
        </li>
        <li>
            <a <?php if($nav_active == 'signup'): ?>class="now"<?php endif; ?> href="<?php echo U('user/signup');?>">参赛报名</a>
        </li>
    </ul>
    <ul class="login">
        <li class="l">
            <a href="<?php echo U('user/index');?>">
                <img src="/Public/skin/images/user.jpg" /><?php echo ($_SESSION['user']['nicename']); ?></a>
        </li>
        <li class="r">
            <a href="<?php echo U('user/loginout');?>">退出</a>
        </li>
    </ul>
    <div class="clear"></div>
</div>
    <!--nav 结束-->

    <div id="join_box">
        <div class="join_infor regist rank_box">
            <?php if(empty($signUps)): ?><div class="nosignup">
                    <img src="/Public/skin/images/bq.jpg" />
                    <p class="bt">您还没有报名任何赛事！</p>
                    <p class="tx">立即参与下面赛事，大奖等你来拿！</p>
                </div><?php endif; ?>
            
            <?php if(!empty($signUps)): ?><h1>已报名赛事</h1>
                <table cellpadding="0" cellspacing="0">
                    <tr class="thead">
                        <td>赛事</td>
                        <td class="t3">期数</td>
                        <td class="t3">场次</td>
                        <td class="t3">报名费</td>
                        <td class="t2">赛事状态</td>
                        <td class="t2">支付状态</td>
                        <td class="t3">操作</td>
                    </tr>
                    <?php if(is_array($signUps)): $index = 0; $__LIST__ = $signUps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($index % 2 );++$index;?><tr class="tr1 <?php if(($mod) == "1"): ?>tr2<?php endif; ?>">
                            <td><?php echo ($vo["name"]); ?></td>
                            <td><?php echo ($vo["periods"]); ?></td>
                            <td><?php echo ($vo["cc"]); ?></td>
                            <td><?php echo ($vo["bmf"]); ?></td>
                            <td><?php echo ($vo["sszt"]); ?></td>
                            <td><?php if($vo['status'] == 0): ?>未付费<?php else: ?>已支付<?php endif; ?></td>
                            <td>
                                <a href="<?php echo U('rank/index');?>">查看名次</a>
                            </td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </table>
                <div class="page"><?php echo ($page); ?></div><?php endif; ?>
            <h1 class="kbm" style="margin-bottom:0;">可报名赛事&ensp;<font style="font-size: 14px; color: red;"><?php echo C('PERIODS');?>：<?php echo C('PERIODSSTARTTIME');?> ~ <?php echo C('PERIODSENDTIME');?> </font></h1>
            <div style="padding: 2px 0 20px 20px;">温馨提示：有疑问请及时联系客服</div>
            <div class="kbm_box">
                <img class="l" src="/Public/skin/images/kbm.jpg" />
                <ul class="r">
                    <li class="li1">
                        <p><?php echo C('WEEKSTRING');?>
                            <br />
                            <span>¥<?php echo C('WEEKCOST');?></span>
                        </p>
                        <a onclick="testDisplay(1)">我要报名</a>
                        <div class="clear"></div>
                    </li>
                    <li class="li2">
                        <p><?php echo C('MONTHSTRING');?>
                            <br />
                            <span>¥<?php echo C('MONTHCOST');?></span>
                        </p>
                        <a onclick="testDisplay(2)">我要报名</a>
                        <div class="clear"></div>
                    </li>
                    <li class="li3">
                        <p><?php echo C('SEASONSTRING');?>
                            <br />
                            <span>¥<?php echo C('SEASONCOST');?></span>
                        </p>
                        <a onclick="testDisplay(3)">我要报名</a>
                        <div class="clear"></div>
                    </li>
                </ul>
                <div class="clear"></div>
            </div>
        </div>
    </div>

    <form id="Payment_From"></form>
        <div class="tanc" id="testD" style="display:none;">
            <a class="close" onclick="testCloseDisplay()">X</a>
            <ul>
                <Li>赛事：
                    <span id="BMF_name"></span>
                </Li>
                <Li>报名费：
                    <span id="BMF_price"></span>
                </Li>
            </ul>
            <div class="clear"></div>
            <h4>请选择支付方式</h4>
            <div class="zf_box">
                <div class="zf">
                    <input type="radio" name="zffs_type" value="WEIXIN" />
                    <img src="/Public/skin/images/wx.jpg" />
                    <span>微信支付</span>
                </div>
                <div class="zf">
                    <input type="radio" name="zffs_type" value="ZFB" checked="checked" />
                    <img src="/Public/skin/images/zub.jpg" />
                    <span>支付宝支付</span>
                </div>
                <div class="clear"></div>
            </div>
            <div class="zf_btn">
                <a id="payment">立即支付</a>
            </div>
        </div>
    </div>

    <!--footer 开始-->
<div id="footer" class="clearfix">
    <div class="clt2">
        <img src="/Public/skin/images/gzh.png" />
        <p>更多信息请关注公众号</p>
    </div>
    <div class="clt">
        <center style="font-size: 14px; color: red; line-height: 20px;">友情链接</center>
        <center class="yqlj-pic"><a href="http://www.hexun.com/" target="_blank"><img src="/Public/skin/images/hx_logo.png"></a></center>
        <p>Copyright © 2010-2017 深圳市森鹏猎头有限公司版权所有 </p>
        <p>备案：粤ICP备17133948号</p>
    </div>
    <div class="crt">
        <img src="/Public/skin/images/awm.jpg" />
    </div>
</div>
<!--footer 结束-->

<script src="https://s22.cnzz.com/z_stat.php?id=1271355534&web_id=1271355534" language="JavaScript"></script>
    
    <script type="text/javascript" src="/Public/javascripts/admin/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/Public/javascripts/admin/jquery.form.js"></script>
    <script type="text/javascript" src="/Public/skin/layer/layer.js"></script>
    <script type="text/javascript" src="/Public/skin/functions.js"></script>
    <script type="text/javascript">
        var cc_type;
        function testDisplay(type) {
            if (type == 1) {
                $('#BMF_price').text('￥<?php echo C('WEEKCOST');?>');
                $('#BMF_name').text('<?php echo C('WEEKSTRING');?>');
            } else if (type == 2) {
                $('#BMF_price').text('￥<?php echo C('MONTHCOST');?>');
                $('#BMF_name').text('<?php echo C('MONTHSTRING');?>');
            } else if (type == 3) {
                $('#BMF_price').text('￥<?php echo C('SEASONCOST');?>');
                $('#BMF_name').text('<?php echo C('SEASONSTRING');?>');
            }
            cc_type = type;
            $('#testD').show();
        }

        function testCloseDisplay() {
            $('#testD').hide();
        }

        //支付
        $('#payment').click(function() {
            var zffs_type = $("input[name='zffs_type']:checked").val();
            var Url = '<?php echo U("User/payment");?>'+"?zffs_type="+zffs_type+"&cc_type="+cc_type;
            window.open(Url);
        })
    </script>
</body>

</html>